.chat-container {
    width: 100%;
    margin: 0.2rem auto;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: relative;
}

.error-message {
    padding: 0.1rem;
    background-color: #ffebee;
    color: #c62828;
    text-align: center;
    margin-bottom: 0.1rem;
}

.message-container {
    padding: 0.2rem;
    overflow-y: auto;
    height: calc(100vh - 1.2rem);
    position: relative;
    -webkit-overflow-scrolling: touch;
    flex: none;
}

.message-item {
    display: flex;
    align-items: flex-end;
    margin: 0.15rem 0;
    gap: 0.1rem;
}

.message-item.own-message {
    flex-direction: row-reverse;
}

.avatar {
    width: 0.4rem;
    height: 0.4rem;
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.message-content {
    max-width: 70%;
    min-width: 0;
}

.system-message {
    text-align: center;
    color: #999;
    font-size: 0.12rem;
    margin: 0.1rem 0;
}

.message-bubble {
    padding: 0.1rem 0.15rem;
    border-radius: 0.1rem;
    position: relative;
    word-break: break-word;
}

.message-bubble.own-message {
    background-color: #6366f1;
    color: white;
}

.message-bubble.other-message {
    background-color: #f5f5f5;
    color: #333;
}

.message-time {
    font-size: 0.1rem;
    opacity: 0.8;
    margin-top: 0.04rem;
}

.message-time.own-message {
    text-align: right;
}

.message-time.other-message {
    text-align: left;
}

.input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.15rem;
    background-color: #fff;
    border-top: 0.01rem solid #eee;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    box-sizing: border-box;
}

.input-wrapper {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 0.2rem;
    padding: 0.1rem 0.15rem;
    color: #666;
    font-size: 0.14rem;
    display: flex;
    align-items: center;
    gap: 0.08rem;
}

.send-button {
    background-color: #6366f1;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 0.4rem;
    height: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.send-button:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
} 